import { request } from '../request';

/** get list */
export function tagInfoList(params: Api.SystemManage.TagInfoSearchParams) {
  return request<Api.SystemManage.TagInfoList>({
    url: '/tagInfo/list',
    method: 'post',
    data: params
  });
}

/** save */
export function tagInfoSave(params?: Api.SystemManage.TagInfoSaveParams) {
  return request<boolean>({
    url: '/tagInfo/add',
    method: 'post',
    data: params
  });
}

/** update */
export function tagInfoUpdate(params?: Api.SystemManage.TagInfoUpdateParams) {
  return request<boolean>({
    url: '/tagInfo/update',
    method: 'post',
    data: params
  });
}

/** get */
export function tagInfoGet(params: { id: string }) {
  return request<Api.SystemManage.TagInfo>({
    url: '/tagInfo/get',
    method: 'post',
    data: params
  });
}

/** del */
export function tagInfoDel(params: { id: string }) {
  return request<boolean>({
    url: '/tagInfo/del',
    method: 'post',
    data: params
  });
}

/** delBatch */
export function tagInfoDelBatch(params: { ids: Array<string> }) {
  return request<boolean>({
    url: '/tagInfo/delBatch',
    method: 'post',
    data: params
  });
}
